x86/paging: add TLB flush hook
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 10 Mar 2020 14:29:24 +0000 (15:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Mar 2020 14:29:24 +0000 (15:29 +0100)
commit920d5f31883c9c4c4e8092a693572fe01b6f7270
treed5f17cc648465bbc082d081f4a4d9b6ec99aa6ef
parent261ef8ccbd28526d69c3a6c5944709f81624741a
x86/paging: add TLB flush hook

Add shadow and hap implementation specific helpers to perform guest
TLB flushes. Note that the code for both is exactly the same at the
moment, and is copied from hvm_flush_vcpu_tlb. This will be changed by
further patches that will add implementation specific optimizations to
them.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wl@xen.org>
Acked-by: Tim Deegan <tim@xen.org>
Reviewed-by: Paul Durrant <pdurrant@amzn.com> [viridian]
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/viridian/viridian.c
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/paging.h